package pimp.organizermanager;

import java.util.*;

public class Cycle {
    private GlobalEvent globalEvent;
    private Vector<Date> beginDates;
    private Date finishDate;
    private Rule rule;

    public Cycle(GlobalEvent gEvent, Vector<Date> begin, Date deadline, Rule newRule) {
        globalEvent = gEvent;
        beginDates = begin;
        finishDate = deadline;
        rule = newRule;
    }

    public Vector<Date> getBeginDates() {
        return beginDates;
    }

    public boolean setBeginDates(Vector<Date> beginDates) {
        this.beginDates = beginDates;
        return true;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public boolean setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
        return true;
    }

    public GlobalEvent getGlobalEvent() {
        return globalEvent;
    }

    public boolean setGlobalEvent(GlobalEvent globalEvent) {
        this.globalEvent = globalEvent;
        return true;
    }

    public Rule getRule() {
        return rule;
    }

    public boolean setRule(Rule rule) {
        this.rule = rule;
        return true;
    }
}
